<?PHP
namespace DB // Persistence layer
{
   interface RepositoryInterface
   {
      public function getById($id);
      public function find($where, $args, $from, $count);
      public function findAll($from, $count);

      public function createRecord();

      public function updateRecord($id, $record);
   }
}